<extend name="Index/index" />

<block name="Main content">

    <div style="padding:20px">

        <div class="col-md-12">
                <form action="<{:U('Question/save')}>" method="post" onsubmit="return checkForm()">

                      <div class="form-group  col-md-10">
                            <div class="col-md-2">标题</div>
                            <div class="col-md-10"><input type="text" class=" form-control" name="name" value="<{$data.name}>"></div>
                      </div>

                      <div class="col-md-2"></div>


                      
                      
                      <div class="form-group  col-md-10">
                            <div class="col-md-2">分类</div>
                            <div class="col-md-2">
                                <select name="topic_name" class="form-control">
                                      <volist name="topiclist" id="v">
                                          <option value="<{$v['name']}>" <if condition="$v['name'] eq $data['topic_name']">selected</if>><{$v['name']}></option>

                                      </volist>
                                </select>
                            </div>
                      </div>
                      <div class="col-md-2"></div>
                      
                      <div class="form-group  col-md-10">
                            <div class="col-md-2">热点</div>
                            <div class="col-md-10">
                                <input class="form-control" type="radio" name="hot" value="0" <if condition="$data['hot'] eq 0">checked</if> >否 &nbsp&nbsp&nbsp 
                               
                                <input class="form-control" type="radio" name="hot" value="1" <if condition="$data['hot'] eq 1">checked</if> >是
                            </div>
                      </div>

                      <div class="col-md-2"></div>
                      
                      <div class="form-group  col-md-10">
                            <div class="col-md-2">内容</div>
                            <div class="col-md-10"><textarea class="form-control" rows="4" name="content" style="resize:none" placeholder="122字数以内"><{$data.content}></textarea> 
                      </div>

                      <div class="col-md-2"></div>


                      
                      <div class="form-group col-md-2 col-md-offset-" style="margin-top:10px">
                          <input type="submit" class="btn btn-primary col-md-12" value="确认修改">
                      </div>


                      <!-- 隐藏域 -->
                      <input type="hidden" name="id" value="<{$data.id}>">
                </form>
            </div>
        </div>
</block>

<block name="myjs">

<script>
    
</script>

</block>
